package com.xyh.ollama_test.config;

import com.xyh.ollama_test.service.PermissionService;
import io.qdrant.client.QdrantClient;
import io.qdrant.client.QdrantGrpcClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QdrantConfig {
    @Bean
    public QdrantClient qdrantClient() {
        return new QdrantClient(
                QdrantGrpcClient.newBuilder("192.168.100.26", 6334, false).build());
    }

    // 添加权限验证服务
    @Bean
    public PermissionService permissionService() {
        return new PermissionService();
    }
}
